using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Raster._RasterProperties
{
    /// <summary>
    /// <para>Build Multidimensional Transpose</para>
    /// <para>Transposes a multidimensional raster dataset, which divides the  multidimensional data along each dimension to optimize performance when accessing pixel values across all slices.</para>
    /// <para>转置多维栅格数据集，该数据集沿每个维度划分多维数据，以优化访问所有切片中的像素值时的性能。</para>
    /// </summary>    
    [DisplayName("Build Multidimensional Transpose")]
    public class BuildMultidimensionalTranspose : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public BuildMultidimensionalTranspose()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_multidimensional_raster">
        /// <para>Input Multidimensional Raster</para>
        /// <para>The input CRF multidimensional raster dataset.</para>
        /// <para>输入 CRF 多维栅格数据集。</para>
        /// </param>
        public BuildMultidimensionalTranspose(object _in_multidimensional_raster)
        {
            this._in_multidimensional_raster = _in_multidimensional_raster;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Build Multidimensional Transpose";

        public override string CallName => "management.BuildMultidimensionalTranspose";

        public override List<string> AcceptEnvironments => ["parallelProcessingFactor"];

        public override object[] ParameterInfo => [_in_multidimensional_raster, _updated_multidimensional_raster, _delete_transpose.GetGPValue()];

        /// <summary>
        /// <para>Input Multidimensional Raster</para>
        /// <para>The input CRF multidimensional raster dataset.</para>
        /// <para>输入 CRF 多维栅格数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Multidimensional Raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_multidimensional_raster { get; set; }


        /// <summary>
        /// <para>Output Multidimensional Raster</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Multidimensional Raster")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_multidimensional_raster { get; set; }


        /// <summary>
        /// <para>Delete Transpose</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Delete Transpose")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _delete_transpose_value _delete_transpose { get; set; } = _delete_transpose_value._false;

        public enum _delete_transpose_value
        {
            /// <summary>
            /// <para>DELETE_TRANSPOSE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DELETE_TRANSPOSE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NO_DELETE_TRANSPOSE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NO_DELETE_TRANSPOSE")]
            [GPEnumValue("false")]
            _false,

        }

        public BuildMultidimensionalTranspose SetEnv(object parallelProcessingFactor = null)
        {
            base.SetEnv(parallelProcessingFactor: parallelProcessingFactor);
            return this;
        }

    }

}